/**
 * 
 */
package com.jeffgalper.feather;

import java.io.IOException;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.List;

class FakeFeatherable extends AbstractFeatherable {

  private String mPath;
  private long mSize;
  private boolean mDirectory;

  public FakeFeatherable(String path, long size) {
    this(path, size, false);
  }

  public FakeFeatherable(String path, long size, boolean directory) {
    mPath = path;
    mSize = size;
    mDirectory = directory;
  }

  public List<Featherable> getChildren() throws FeatherException {
    return new ArrayList<Featherable>();
  }

  public long getFileSize() throws FeatherException {
    return mSize;
  }

  public String getUPath() {
    return mPath;
  }

  public boolean isDirectory() {
    return mDirectory;
  }

  public void write(FileChannel fc) throws IOException, FeatherException {
  }
}